Skip to content

fix: allow resolving public experts without PERSTACK_API_KEY#653

Merged
FL4TLiN3 merged 1 commit intomainfrom
fix-public-expert-no-api-key
Feb 26, 2026
Merged

fix: allow resolving public experts without PERSTACK_API_KEY#653
FL4TLiN3 merged 1 commit intomainfrom
fix-public-expert-no-api-key

Conversation

@FL4TLiN3
Copy link
Contributor

Summary

  • Remove early throw in resolveExpertToRun and resolveAllExperts that blocked API calls without an API key
  • Public experts on the Perstack API do not require authentication, so the client should attempt the request regardless
  • The API client already handles optional API keys (only adds Authorization header when present)

Changed files

  • packages/runtime/src/helpers/resolve-expert.ts — remove API key guard
  • packages/installer/src/expert-resolver.ts — remove API key guard
  • packages/runtime/src/helpers/resolve-expert.test.ts — update test to verify public expert resolution without key

Test plan

  • bun run typecheck passes
  • bun run test passes
  • resolve-expert.test.ts verifies public expert fetch without API key
  • docker run --rm -it -e ANTHROPIC_API_KEY perstack/perstack start create-expert "test" works without PERSTACK_API_KEY

🤖 Generated with Claude Code

Public experts do not require authentication. Remove the early throw
that blocked API calls without an API key, allowing the client to
attempt the request (the API returns public experts without auth).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 enabled auto-merge (squash) February 26, 2026 02:09
@FL4TLiN3 FL4TLiN3 merged commit 77995e5 into main Feb 26, 2026
11 checks passed
@FL4TLiN3 FL4TLiN3 deleted the fix-public-expert-no-api-key branch February 26, 2026 02:09
@FL4TLiN3 FL4TLiN3 mentioned this pull request Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant